//
//  FFShareManager.h
//  Common
//
//  Created by IT.Bear on 16/4/8.
//  Copyright © 2016年 IT.Bear. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FFMacro.h"
#import <UIKit/UIKit.h>
#import <UMSocialCore/UMSocialCore.h>

#define UMENG_APPKEY @"59f2f0ddf43e485eb800001d"

#define QQAPPID  @"1105703772"
#define QQAPPKey @"X0b4mQYPeVlZyD1T"

#define WECHATKEY @"wxf37d97e1a98dd2f5"
#define WECHATSECRET @"ca81f63df82d0c04168528eb8e36cec6"

#define SINAKEY @"1260440367"
#define SINASECRET @"e9a20093fb67f09efd3fd7f88fc6f416"

typedef void (^shareResultCallback) (BOOL sucessful, NSString *snsName);
typedef void (^clickPlatformCallback) (NSString *snsName);
@interface FFShareManager : NSObject

@property (nonatomic, assign) BOOL isBenifit;

+ (FFShareManager *)sharedInstance;

//回调分享成功or失败
- (void)shareToSnsSheetView:(UIViewController *)controller
                 shareTitle:(NSString *)shareTitle
                  shareText:(NSString *)shareText
                 shareImage:(UIImage *)shareImage
            shareToPlatformType:(UMSocialPlatformType)shareToPlatformType
                   shareUrl:(NSString *)shareUrl
                   callBack:(shareResultCallback)callBack;
//回调点击的分享平台
- (void)shareToSnsSheetView:(UIViewController *)controller
                 shareTitle:(NSString *)shareTitle
                  shareText:(NSString *)shareText
                 shareImage:(UIImage *)shareImage
            shareToPlatformType:(UMSocialPlatformType)shareToPlatformType
                   shareUrl:(NSString *)shareUrl
      clickPlatformCallBack:(clickPlatformCallback)callBack;

//分享多张图片，调用系统原生分享UIActivityViewController
- (void)shareWithTitle:(NSString *)title ImageUrls:(NSArray *)imageUrls InController:(UIViewController *)controller;

- (id)init;

@end
